package com.xiaofeng.auth.domain.service;

import cn.dev33.satoken.stp.SaTokenInfo;
import com.xiaofeng.auth.domain.entity.AuthUserBO;
import com.xiaofeng.subject.infra.basic.entity.AuthUser;

/**
 * @Author: chc
 * @Date: 2024/02/17/21:30
 * @Description:
 */
public interface AuthUserDomainService {

    /**
     * 注册
     */
    Boolean register(AuthUserBO authUserBO);

    /**
     * 更新用户信息
     * @param authUserBO
     * @return
     */
    Boolean update(AuthUserBO authUserBO);

    /**
     * 删除用户
     * @param authUserBO
     * @return
     */
    Boolean delete(AuthUserBO authUserBO);

    SaTokenInfo doLogin(String vailCode);

    /**
     * 获取用户信息
     * @param authUserBO
     * @return
     */
    AuthUserBO getUserInfo(AuthUserBO authUserBO);
}
